package factorymodel.factorymethodmodel;

import factorymodel.factorymethodmodel.factory.carFactory;
import factorymodel.factorymethodmodel.factory.carfactroryImpl.huaWeiFactory;
import factorymodel.factorymethodmodel.factory.carfactroryImpl.xiaoMiFactory;
import factorymodel.factorymethodmodel.pojo.car;

public class factorymethodmodel {
    public static void main(String[] args) {

        carFactory huaWeiFactory = new huaWeiFactory();
        car huaWeiCar = huaWeiFactory.createCar();
        huaWeiCar.run();

        carFactory xiaoMiFactory = new xiaoMiFactory();
        car xiaoMiCar = xiaoMiFactory.createCar();
        xiaoMiCar.run();

    }
}
